#!/bin/bash

if [ $# -ne 2 ]
then
  	echo "Usage: `basename $0` Must be run with exactly 2 parameters = 1. start worker number and 2. end worker number !"
  	exit $E_BADARGS
fi

server=192.168.1.100

for i in `seq $1 $2`
do
	worker='worker'$i
	java -cp ".:lib/*:*" org.jgap.distr.grid.JGAPWorker -s $server -n $worker > $worker'.log' &
done




